package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class CompanyMainBusiness implements Serializable {

	private static final long serialVersionUID = 250410550780190934L;

	//fields
	private java.lang.Integer companyId;
	private java.lang.String productCat;
	private java.lang.Integer productDef;
	private java.lang.String processCat;
	private java.lang.Integer processDef;
	private java.lang.String serviceCat;
	private java.lang.Integer serviceDef;
	private java.lang.String cooperateCat;
	private java.lang.Integer cooperateDef;
	private java.sql.Timestamp lastupdate;

	//default constructor
	public CompanyMainBusiness() {
	}

	//getter
	public java.lang.Integer getCompanyId() {
		return companyId;
	}
	public java.lang.String getProductCat() {
		return productCat;
	}
	public java.lang.Integer getProductDef() {
		return productDef;
	}
	public java.lang.String getProcessCat() {
		return processCat;
	}
	public java.lang.Integer getProcessDef() {
		return processDef;
	}
	public java.lang.String getServiceCat() {
		return serviceCat;
	}
	public java.lang.Integer getServiceDef() {
		return serviceDef;
	}
	public java.lang.String getCooperateCat() {
		return cooperateCat;
	}
	public java.lang.Integer getCooperateDef() {
		return cooperateDef;
	}
	public java.sql.Timestamp getLastupdate() {
		return lastupdate;
	}

	//setter
	public void setCompanyId(java.lang.Integer companyId) {
		this.companyId = companyId;
	}
	public void setProductCat(java.lang.String productCat) {
		this.productCat = productCat;
	}
	public void setProductDef(java.lang.Integer productDef) {
		this.productDef = productDef;
	}
	public void setProcessCat(java.lang.String processCat) {
		this.processCat = processCat;
	}
	public void setProcessDef(java.lang.Integer processDef) {
		this.processDef = processDef;
	}
	public void setServiceCat(java.lang.String serviceCat) {
		this.serviceCat = serviceCat;
	}
	public void setServiceDef(java.lang.Integer serviceDef) {
		this.serviceDef = serviceDef;
	}
	public void setCooperateCat(java.lang.String cooperateCat) {
		this.cooperateCat = cooperateCat;
	}
	public void setCooperateDef(java.lang.Integer cooperateDef) {
		this.cooperateDef = cooperateDef;
	}
	public void setLastupdate(java.sql.Timestamp lastupdate) {
		this.lastupdate = lastupdate;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof CompanyMainBusiness))
			return false;

		final CompanyMainBusiness companyMainBusiness = (CompanyMainBusiness)other;
		if (!this.companyId.equals(companyMainBusiness.getCompanyId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(companyId).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("CompanyMainBusiness[")
			.append("companyId=").append(companyId).append(", ")
			.append("productCat=").append(productCat).append(", ")
			.append("productDef=").append(productDef).append(", ")
			.append("processCat=").append(processCat).append(", ")
			.append("processDef=").append(processDef).append(", ")
			.append("serviceCat=").append(serviceCat).append(", ")
			.append("serviceDef=").append(serviceDef).append(", ")
			.append("cooperateCat=").append(cooperateCat).append(", ")
			.append("cooperateDef=").append(cooperateDef).append(", ")
			.append("lastupdate=").append(lastupdate).append("]").toString();
	}
}